#ifndef TLIB_H
#define TLIB_H

#include <QObject>
#include "lib_global.h"

class Calc : public QObject {
    Q_OBJECT
    Q_PROPERTY(int operA READ operA WRITE setOperA);
    Q_PROPERTY(int operB READ operB WRITE setOperB);

public:
    Calc();

    int operA() const {
        return fieldA;
    }

    void setOperA(int f) {
        this->fieldA = f;
    }

    int operB() const {
        return fieldB;
    }

    void setOperB(int f) {
        this->fieldB = f;
    }

    Q_INVOKABLE int addFunc(int c);

signals:
    void message(int v);

private:
    int fieldA;
    int fieldB;
};

#endif // TLIB_H
